#define _CRT_SECURE_NO_WARNINGS 1
int main()
{
    int a = 0, b = 0, c = 0, max = 0, mid = 0, min = 0;
    scanf("%d %d %d", &a, &b, &c); ?
    if(a > b && a > c?)
         max = a;
    else  if (b > c && b > a?)
         max = b;
    else  if (c > a && c > b?)
         max = c;
    if (a < b && a < c)
        min = a;
    else if (b < a && b < c)
        min = b;
    else if (c < a && c < b)
        min = c;
    mid = a + b + c - max - min;
    printf("%d %d %d", max, mid, min);
    return 0;
}?